Integrand size = 21, antiderivative size = 72 \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\frac {(a+b)^3 \log (\cosh (c+d x))}{d}+\frac {a^3 \log (\tanh (c+d x))}{d}-\frac {b^2 (3 a+b) \tanh ^2(c+d x)}{2 d}-\frac {b^3 \tanh ^4(c+d x)}{4 d} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3751, 457, 84} \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\frac {a^3 \log (\tanh (c+d x))}{d}-\frac {b^2 (3 a+b) \tanh ^2(c+d x)}{2 d}+\frac {(a+b)^3 \log (\cosh (c+d x))}{d}-\frac {b^3 \tanh ^4(c+d x)}{4 d} \]
[In]
[Out]
Rule 84
Rule 457
Rule 3751
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (a+b x^2\right )^3}{x \left (1-x^2\right )} \, dx,x,\tanh (c+d x)\right )}{d} \\ & = \frac {\text {Subst}\left (\int \frac {(a+b x)^3}{(1-x) x} \, dx,x,\tanh ^2(c+d x)\right )}{2 d} \\ & = \frac {\text {Subst}\left (\int \left (-b^2 (3 a+b)-\frac {(a+b)^3}{-1+x}+\frac {a^3}{x}-b^3 x\right ) \, dx,x,\tanh ^2(c+d x)\right )}{2 d} \\ & = \frac {(a+b)^3 \log (\cosh (c+d x))}{d}+\frac {a^3 \log (\tanh (c+d x))}{d}-\frac {b^2 (3 a+b) \tanh ^2(c+d x)}{2 d}-\frac {b^3 \tanh ^4(c+d x)}{4 d} \\ \end{align*}
Time = 0.62 (sec) , antiderivative size = 67, normalized size of antiderivative = 0.93 \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\frac {2 (a+b)^3 \log (\cosh (c+d x))+2 a^3 \log (\tanh (c+d x))-b^2 (3 a+b) \tanh ^2(c+d x)-\frac {1}{2} b^3 \tanh ^4(c+d x)}{2 d} \]
[In]
[Out]
Time = 0.21 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.11
method | result | size |
parallelrisch | \(\frac {-4 \left (a +b \right )^{3} \ln \left (1-\tanh \left (d x +c \right )\right )+4 a^{3} \ln \left (\tanh \left (d x +c \right )\right )-b^{3} \tanh \left (d x +c \right )^{4}+\left (-6 a \,b^{2}-2 b^{3}\right ) \tanh \left (d x +c \right )^{2}-4 d x \left (a +b \right )^{3}}{4 d}\) | \(80\) |
derivativedivides | \(-\frac {\frac {b^{3} \tanh \left (d x +c \right )^{4}}{4}+\frac {3 a \,b^{2} \tanh \left (d x +c \right )^{2}}{2}+\frac {b^{3} \tanh \left (d x +c \right )^{2}}{2}+\left (\frac {1}{2} a^{3}+\frac {3}{2} a^{2} b +\frac {3}{2} a \,b^{2}+\frac {1}{2} b^{3}\right ) \ln \left (\tanh \left (d x +c \right )+1\right )-a^{3} \ln \left (\tanh \left (d x +c \right )\right )+\left (\frac {1}{2} a^{3}+\frac {3}{2} a^{2} b +\frac {3}{2} a \,b^{2}+\frac {1}{2} b^{3}\right ) \ln \left (\tanh \left (d x +c \right )-1\right )}{d}\) | \(125\) |
default | \(-\frac {\frac {b^{3} \tanh \left (d x +c \right )^{4}}{4}+\frac {3 a \,b^{2} \tanh \left (d x +c \right )^{2}}{2}+\frac {b^{3} \tanh \left (d x +c \right )^{2}}{2}+\left (\frac {1}{2} a^{3}+\frac {3}{2} a^{2} b +\frac {3}{2} a \,b^{2}+\frac {1}{2} b^{3}\right ) \ln \left (\tanh \left (d x +c \right )+1\right )-a^{3} \ln \left (\tanh \left (d x +c \right )\right )+\left (\frac {1}{2} a^{3}+\frac {3}{2} a^{2} b +\frac {3}{2} a \,b^{2}+\frac {1}{2} b^{3}\right ) \ln \left (\tanh \left (d x +c \right )-1\right )}{d}\) | \(125\) |
risch | \(-a^{3} x -3 b \,a^{2} x -3 a \,b^{2} x -b^{3} x -\frac {6 b c \,a^{2}}{d}-\frac {6 a \,b^{2} c}{d}-\frac {2 b^{3} c}{d}-\frac {2 a^{3} c}{d}+\frac {2 b^{2} {\mathrm e}^{2 d x +2 c} \left (3 a \,{\mathrm e}^{4 d x +4 c}+2 b \,{\mathrm e}^{4 d x +4 c}+6 \,{\mathrm e}^{2 d x +2 c} a +2 b \,{\mathrm e}^{2 d x +2 c}+3 a +2 b \right )}{d \left ({\mathrm e}^{2 d x +2 c}+1\right )^{4}}+\frac {3 b \ln \left ({\mathrm e}^{2 d x +2 c}+1\right ) a^{2}}{d}+\frac {3 \ln \left ({\mathrm e}^{2 d x +2 c}+1\right ) a \,b^{2}}{d}+\frac {b^{3} \ln \left ({\mathrm e}^{2 d x +2 c}+1\right )}{d}+\frac {a^{3} \ln \left ({\mathrm e}^{2 d x +2 c}-1\right )}{d}\) | \(231\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 2381 vs. \(2 (68) = 136\).
Time = 0.29 (sec) , antiderivative size = 2381, normalized size of antiderivative = 33.07 \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\int \left (a + b \tanh ^{2}{\left (c + d x \right )}\right )^{3} \coth {\left (c + d x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 214 vs. \(2 (68) = 136\).
Time = 0.28 (sec) , antiderivative size = 214, normalized size of antiderivative = 2.97 \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=b^{3} {\left (x + \frac {c}{d} + \frac {\log \left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}{d} + \frac {4 \, {\left (e^{\left (-2 \, d x - 2 \, c\right )} + e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )}\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} + 3 \, a b^{2} {\left (x + \frac {c}{d} + \frac {\log \left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}{d} + \frac {2 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d {\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} + e^{\left (-4 \, d x - 4 \, c\right )} + 1\right )}}\right )} + \frac {3 \, a^{2} b \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}{d} + \frac {a^{3} \log \left (\sinh \left (d x + c\right )\right )}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 267 vs. \(2 (68) = 136\).
Time = 0.39 (sec) , antiderivative size = 267, normalized size of antiderivative = 3.71 \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\frac {2 \, a^{3} \log \left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )} - 2\right ) + 2 \, {\left (3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \log \left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )} + 2\right ) - \frac {9 \, a^{2} b {\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )}^{2} + 9 \, a b^{2} {\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )}^{2} + 3 \, b^{3} {\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )}^{2} + 36 \, a^{2} b {\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )} + 12 \, a b^{2} {\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )} - 4 \, b^{3} {\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )}\right )} + 36 \, a^{2} b - 12 \, a b^{2} - 4 \, b^{3}}{{\left (e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (-2 \, d x - 2 \, c\right )} + 2\right )}^{2}}}{4 \, d} \]
[In]
[Out]
Time = 0.36 (sec) , antiderivative size = 380, normalized size of antiderivative = 5.28 \[ \int \coth (c+d x) \left (a+b \tanh ^2(c+d x)\right )^3 \, dx=\frac {\ln \left ({\mathrm {e}}^{4\,c+4\,d\,x}-1\right )\,\left (a^3\,d+d\,\left (3\,a^2\,b+3\,a\,b^2+b^3\right )\right )}{2\,d^2}-x\,{\left (a+b\right )}^3+\frac {2\,\left (2\,b^3+3\,a\,b^2\right )}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}+\frac {8\,b^3}{d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}+3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}+1\right )}+\frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{2\,c}\,{\mathrm {e}}^{2\,d\,x}\,\left (b^3\,\sqrt {-d^2}-a^3\,\sqrt {-d^2}+3\,a\,b^2\,\sqrt {-d^2}+3\,a^2\,b\,\sqrt {-d^2}\right )}{d\,\sqrt {a^6-6\,a^5\,b+3\,a^4\,b^2+16\,a^3\,b^3+15\,a^2\,b^4+6\,a\,b^5+b^6}}\right )\,\sqrt {a^6-6\,a^5\,b+3\,a^4\,b^2+16\,a^3\,b^3+15\,a^2\,b^4+6\,a\,b^5+b^6}}{\sqrt {-d^2}}-\frac {2\,\left (4\,b^3+3\,a\,b^2\right )}{d\,\left (2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1\right )}-\frac {4\,b^3}{d\,\left (4\,{\mathrm {e}}^{2\,c+2\,d\,x}+6\,{\mathrm {e}}^{4\,c+4\,d\,x}+4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1\right )} \]
[In]
[Out]